package com.ccb.sc.common.modules.goods.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ccb.sc.common.entity.BaseEntity;
import com.ccb.sc.common.modules.goods.enums.GoodsType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 产品评价
 * </p>
 *
 * @author ken
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_goods_comment")
public class GoodsComment extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 订单评价id
     */
    @TableField("comment_id")
    private Long commentId;

    /**
     * 所属用户
     */
    @TableField("member_id")
    private Long memberId;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品规格id
     */
    @TableField("goods_specs_id")
    private Long goodsSpecsId;

    /**
     * 商品规格名称
     */
    @TableField("goods_specs_name")
    private String goodsSpecsName;

    /**
     * 昵称
     */
    @TableField("nickname")
    private String nickname;

    /**
     * 头像
     */
    @TableField("avatar")
    private String avatar;

    /**
     * ip
     */
    @TableField("ip")
    private String ip;

    /**
     * 是否匿名
     */
    @TableField("is_anonymous")
    private Boolean isAnonymous;

    /**
     * 是否显示
     */
    @TableField("is_show")
    private Boolean isShow;

    /**
     * content
     */
    @TableField("content")
    private String content;

    /**
     * 图片
     */
    @TableField("pictures")
    private String pictures;

    /**
     * 评分
     */
    @TableField("score")
    private Integer score;

    /**
     * 回复内容
     */
    @TableField("reply")
    private String reply;

    /**
     * 回复时间
     */
    @TableField("reply_time")
    private LocalDateTime replyTime;

    /**
     * 商品类型 1积分商品 2店主商品
     */
    @TableField("goods_type")
    private GoodsType goodsType;

    /**
     * 是否删除
     */
    @TableField("deleted")
    private Boolean deleted;

}
